package it.nm.unipicontrol.gateway.event;

public class UniPiRelayEvent extends UniPiEvent {

	private int relay = -1;
	
	/**
	 * 0 = closed
	 * 1 = open
	 * -1 = unknown
	 */
	private int status;
	
	public UniPiRelayEvent(Object source) {
		this(source,-1, -1);
	}

	public UniPiRelayEvent(Object source, int relay, int status) {
		super (source);
		this.relay = relay;
		this.status = status;
	}
	
	public int getRelay() {
		return relay;
	}
	
	public int getStatus() {
		return status;
	}

}
